package cate.game.role.pvp.championrace.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBChampionRace;
import easy.java.dev.note.NoteField;

public class ChampionRaceGetPsReq implements MsgInput {
    @NoteField("玩家uid")
    public String roleUid;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        ChampionRaceGetPsResp resp = game.pvp.championRace.getBizHandler().getPs(this);
        if (resp != null) {
            cc.sendNow(resp);
        }
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBChampionRace.GET_PS_REQ;
    }
}
